/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.minhphuong.bll;

import com.minhphuong.dal.ChiTietSanPhamDAL;
import com.minhphuong.entities.ChiTietSanPham;

public class ChiTietSanPhamBLL {

    public static boolean insertChiTietSanPham(ChiTietSanPham ctsp) {
        ctsp.setMaCtsp(HelperBLL.getNextID("ChiTietSanPham", "maCtsp"));
        return ChiTietSanPhamDAL.insertChiTietSanPham(ctsp);
    }
     public static ChiTietSanPham getChiTietSanPhamByID(int Id){
        return ChiTietSanPhamDAL.getChiTietSanPhamByID(Id);
    }
     public static void updateChiTietSanPham(ChiTietSanPham ctsp)
    {
        ChiTietSanPhamDAL.updateChiTietSanPham(ctsp);
    }
}
